package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@NoArgsConstructor
@Setter
@Getter
@ToString
@TableName("tb_major")
public class Major implements Serializable {
    @TableId(type = IdType.AUTO)//指定自增策略
    private  Integer id;
    @TableField("major_name")
    private String majorName;
    @TableField(exist = false)
    private LocalDateTime createDate;
}
